﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI;

namespace FantasyWereld.Common
{
    class Constants
    {
        public const string WEBSITEBASE = "http://www.fantasywereld.nl";
        public const int APP_VERSION = 26;

        public const string CSS1 = "<link rel='stylesheet' id='NextGEN-css' href='/wp-content/plugins/nextgen-gallery/css/nggallery.css?ver=1.0.0' type='text/css' media='screen' />";
        public const string CSS2 = "<link rel='stylesheet' id='shutter-css' href='/wp-content/plugins/nextgen-gallery/shutter/shutter-reloaded.css?ver=1.3.4' type='text/css' media='screen' />";
        public const string CSS3 = "<link rel='stylesheet' id='style-css' href='/wp-content/themes/FantasyWereld/style.css?ver=3.5.1' type='text/css' media='all' />";

        public const string STARSLOCATION = WEBSITEBASE + "/wp-content/themes/FantasyWereld/images/";

        public const string REVIEWFEED = WEBSITEBASE + "/recensies/";

        public const string RSSFEED_KB = WEBSITEBASE + "/appfeeds/Kinderen";
        public const string RSSFEED_KB_CODE = "R_KB";
        public const string RSSFEED_KB_TITLE = "Kinderen";

        public const string RSSFEED_VW = WEBSITEBASE + "/appfeeds/Volwassenen";
        public const string RSSFEED_VW_CODE = "R_VW";
        public const string RSSFEED_VW_TITLE = "Volwassenen";

        public const string RSSFEED_YA = WEBSITEBASE + "/appfeeds/Young-Adults";
        public const string RSSFEED_YA_CODE = "R_YA";
        public const string RSSFEED_YA_TITLE = "Young Adults";

        public const string RSSFEED_GN = WEBSITEBASE + "/appfeeds/Graphic-Novels";
        public const string RSSFEED_GN_CODE = "R_GN";
        public const string RSSFEED_GN_TITLE = "Graphic Novels";

        public const string BOOKFEED = WEBSITEBASE + "/boeken_volledig";
        public const string BOOKFEED_BD_CODE = "BD";
        public const string BOOKFEED_DESCRIPTION = "Hier vindt u de FantasyWereld databank met alle bij ons geregistreerde boeken in het fantasy genre.";
        public const string BOOKFEED_TITLE = "Boeken Databank";
        public const string BOOKFEED_BD_IMAGE = "Images/Boeken.png";

        public const string AUTHORFEED = WEBSITEBASE + "/auteurs/";
        public const string AUTHORFEED_CODE = "AU";
        public const string AUTHORFEED_DESCRIPTION = "Hier vindt u de FantasyWereld databank met alle bij ons geregistreerde auteurs in het fantasy genre.";
        public const string AUTHORFEED_TITLE = "Auteurs Databank";
        public const string AUTHORFEED_IMAGE = "Images/Auteurs.png";
        public const string AUTHORFEED_UNKNOWN_IMAGE = "Images/Onbekend.jpg";

        public const string SHORTSTORYFEED = WEBSITEBASE + "/kortverhalen";
        public const string SHORTSTORYFEED_CODE = "SS";
        public const string SHORTSTORYFEED_DESCRIPTION = "Hier vindt u de korte verhalen van de FantasyWereld website.";
        public const string SHORTSTORYFEED_TITLE = "Korte Verhalen";
        public const string SHORTSTORYFEED_IMAGE = "Images/Verhalen.png";

        public const string WEBSITE_FORUM = WEBSITEBASE + "/forum";
        public const string WEBSITE_FACEBOOK = "http://www.facebook.com/pages/Fantasy-Wereld/160036587395802?v=wall";

        public const string RSSFEED_R_TITLE = "Recensies";
        public const string RSSFEED_R_IMAGE = "Images/Recensies.png";

        public const string RSSFEED_N_TITLE = "Laatste nieuws";
        public const string RSSFEED_N_IMAGE = "Images/Nieuws.png";

        public const string RSSFEED_AG = WEBSITEBASE + "/category/achtergrond/feed";
        public const string RSSFEED_FA = WEBSITEBASE + "/category/favoriet/feed";
        public const string RSSFEED_AR_CODE = "AR";
        public const string RSSFEED_AR_TITLE = "Artikelen";
        public const string RSSFEED_AR_IMAGE = "Images/Artikelen.png";

        public const string RSSFEED_GB = WEBSITEBASE + "/category/gastblogs/feed";
        public const string RSSFEED_GB_CODE = "GB";
        public const string RSSFEED_GB_TITLE = "Gastblogs";
        public const string RSSFEED_GB_IMAGE = "Images/Gastblogs.png";

        public const string RSSFEED_IV = WEBSITEBASE + "/category/interviews/feed";
        public const string RSSFEED_IV_CODE = "IV";
        public const string RSSFEED_IV_TITLE = "Interviews";
        public const string RSSFEED_IV_IMAGE = "Images/Interviews.png";

        public const string RSSFEED_OR = WEBSITEBASE + "/overigrecensies_feed";
        public const string RSSFEED_OR_CODE = "OR";
        public const string RSSFEED_OR_TITLE = "Overige recensies";
        public const string RSSFEED_OR_IMAGE = "Images/Overigrecensies.png";

        public const string RSSFEED_SC = WEBSITEBASE + "/category/schrijven/feed";
        public const string RSSFEED_SC_CODE = "SC";
        public const string RSSFEED_SC_TITLE = "Fantasy Schrijven";
        public const string RSSFEED_SC_IMAGE = "Images/Schrijven.png";

        public const string SHOP_AT_BOL_START = "http://partnerprogramma.bol.com/click/click?p=1&s=29914&t=s&f=SBX&sec=all&st=";
        public const string SHOP_AT_BOL_END = "&name=app_fw&subid=recensies";

        public const string XML_BASE_FILE = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><xml></xml>";
        public const string XML_FILE_DIR = "XML";
        public const string XML_REVIEWS_FILE_NAME = "reviews.xml";
        public const string SUGGESTION_FILE_NAME = "suggestions.txt";
        public const string XML_BOOKS_FILE_NAME = "books.xml";
        public const string XML_TILE = "FantasyWereld.xml";
        public const string XML_AUTHORS_FILE_NAME = "authors.xml";

        public const string FIND_IMG_TAG_START = "http://";
        public const string FIND_IMG_TAG_END1 = ".jpg";
        public const string FIND_IMG_TAG_END2 = ">";

        public const string DEFAULT_IMAGE_PATH = "Images/channel";
        public const string DEFAULT_IMAGE_EXTENTION = ".png";
        public const string DEFAULT_AUTHOR_IMAGE = "Images/Facebook";

        public const int MAX_RESPONSE_BUFFERSIZE = 1024 * 1024; // Read up to 1 MB of data

        public const int INITIAL_NR_ITEMS = 6; // First amount of items that will be fetched per collection;
        public const int PAGE_SIZE = 20; // Maximum amount of items that will be fetched per page;
        public const int FLIPVIEW_PAGE_SIZE = 10; // Maximum amount of items that will be fetched when the flipview reaches the end of the present collection.
        public const int MAX_NR_ITEMS = 5000; // Maximum amount of items that will be fetched per collection;
        public const int MAX_NR_AUTHORS_TO_UPDATE = 250; // Maximum amount of items that will be updated;
        public const int NR_RECENT_DAYS = 14; // Number of days that will trigger the recent image;
        public const int NR_NEW_DAYS = 1; // Number of days that will trigger the new image;

        public static Color SETTINGS_BACKGROUND = Color.FromArgb(255, 255, 153, 0);
        public static Color SETTINGS_FOREGROUND = Color.FromArgb(255, 255, 255, 255);

        public const string TASK_NAME = "FWTileUpdater";
        public const string TASK_ENTRY = "BackgroundTasks.FWTileUpdater";
        public const int UPDATE_HOURS = 12;
        public const int UPDATE_BADGE = 3;
        public const int TASK_TIMEPERIOD = 60 * UPDATE_HOURS; // Minutes

        public const string UPDATE_FREQ_FILE = "update.xml"; // File to activate way to influence update frequency of background task

        // Latest items
        public const string RSSFEED_LATEST = WEBSITEBASE + "/?feed=rss2";
        public const string JSONFEED_FACEBOOK = "https://www.facebook.com/feeds/page.php?format=json&id=160036587395802";

        public const int NOTIFICATION_BOOKS = 1;
        public const int NOTIFICATION_AUTHORS = 2;
        public const int NOTIFICATION_REVIEWS = 3;
        public const int NOTIFICATION_STORIES = 4;
        public const string NOTIFICATION_IMAGE = "ms-appx:///Images/NotificatieImage.jpg";
        public const string NOTIFICATION_BOOKS_IMAGE = "ms-appx:///Images/NotificatieBoeken.png";
        public const string NOTIFICATION_AUTHORS_IMAGE = "ms-appx:///Images/NotificatieAuteurs.png";
        public const string NOTIFICATION_REVIEWS_IMAGE = "ms-appx:///Images/NotificatieRecensies.png";
        public const string NOTIFICATION_STORIES_IMAGE = "ms-appx:///Images/NotificatieVerhalen.png";

        public const string MESSAGE_NOTIFICATION_HEADER = "FantasyWereld";
        public const string MESSAGE_NOTIFICATION_NEW_BOOKS = "Er zijn nieuwe boeken gevonden op de website";
        public const string MESSAGE_NOTIFICATION_NEW_NEWS = "Er is nieuwe informatie opgehaald van de website";
        public const string MESSAGE_NOTIFICATION_NEW_REVIEWS = "Er zijn nieuwe recensies gevonden op de website";
        public const string MESSAGE_NOTIFICATION_NEW_STORY = "Er is een nieuw verhaal opgehaald van de website";
        public const string MESSAGE_NOTIFICATION_REPAIRED_REVIEWS = "De recensies zijn bijgewerkt";
        public const string MESSAGE_NOTIFICATION_UPDATE_AUTHOR = "Auteur is bijgewerkt vanaf de website";
        public const string MESSAGE_NOTIFICATION_UPDATE_AUTHORS = "Er zijn nieuwe auteurs gevonden op de website";
        public const string MESSAGE_NOTIFICATION_UPDATE_NO_AUTHOR = "Auteur niet gevonden op de website";
    }
}
